package Capitulo09;

public class Calcular extends Thread {

	int total;

	public void run() {
		synchronized (this) {
			for (int i = 0; i < 100; i++) {
				total += i;
			}
			System.out.println("Notifica Todas as Threads..." + Thread.currentThread().getName());
			notifyAll();
		}

	}

}
